package com.acme.bankapp.domain.bank;


public class Bank {
	
	private Client[] clients;

	public Bank() {
		clients = new Client[10];
	}
	
	public void addClient(Client client)
	{
		for (int i = 0; i < clients.length; i++)
		{
			if (clients[i] == null)
			{
				clients[i] = client;
				return;
			}
		}
		// Exception: array is full
	}
	
	public Client getClient(int num)
	{
		return clients[num];
	}
	
	public int numClients() {
		for (int i = 0; i < clients.length; i++)
		{
			if (clients[i] == null)
			{
				return i;
			}
		} 
		return clients.length;
	}
	
}
